//
//  YSGameViewController.h
//  Yaoyle
//
//  Created by ZhaoXudong on 14-9-24.
//  Copyright (c) 2014年 ZhaoXudong. All rights reserved.
//

#import "YSBaseViewController.h"
#import "YSRoomModel.h"
#import "AsyncSocket.h"
#import "AsyncUdpSocket.h"

typedef enum eGameStatus {
    eGameWaiting,
    eGameReady,     // 已准备
    EGameOpen       // 开
}eGameStatus;


@protocol GameViewDelegate <NSObject>

- (void)soundOn;
- (void)soundOff;

@end

typedef void(^ChangeSocketBlock)(eSocketAciton action);

@interface YSGameViewController : YSBaseViewController

@property (nonatomic, strong)AsyncSocket *socket1;
@property (nonatomic, strong)YSUserModel *userModel;
@property (nonatomic, strong)YSRoomModel *roomModel;

@property (nonatomic, strong)NSMutableArray *playerArray;

@property (nonatomic, copy)ChangeSocketBlock block;
@property (nonatomic, retain)id<GameViewDelegate> delegate;

@property eRoomType roomType;

@end
